using System;

namespace Atomic.Libraries.Jobs
{
	[Serializable]
	public class JobException : Exception
	{
		public JobException(Job job, Exception innerException)
			: base("Exception was thrown while running the job.", innerException)
		{
			Job = job;
		}

		public JobException(Job job, string message)
			: base(message)
		{
			Job = job;
		}

		public Job Job
		{
			get;
			private set;
		}
	}
}
